package com.marktotop.entity.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_reservation_record")
@ApiModel(value="ReservationRecord对象", description="")
public class ReservationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "接种人id")
    private Long reservatorId;

    @ApiModelProperty(value = "所属接种点")
    private Long vaccSiteId;

    @ApiModelProperty(value = "预约日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date reservationDate;

    @ApiModelProperty(value = "预约时间段(0上午,1下午)")
    private Integer reservationTime;

    @ApiModelProperty(value = "接种疫苗id")
    private Long vaccineId;

    @ApiModelProperty(value = "预约该疫苗的第几针")
    private Integer vaccineNeedle;

    @ApiModelProperty(value = "预约状态(1已预约2已受理)")
    private Integer states;

    @ApiModelProperty(value = "预约二维码")
    private String qrCode;

}
